package com.sgj.common.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MybatisPlus 分页插件
 * @author 沈国纪
 * @date 2021/12/16 21:19
 */
@Configuration
public class MybatisPlusConfig {

	@Bean
	public PaginationInnerInterceptor paginationInnerInterceptor() {
		PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor();
		paginationInnerInterceptor.setMaxLimit(9999L);
		return paginationInnerInterceptor;
	}
}